projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56631d0
)
gdk_gl_texture_from_surface: Enable scissor test
author
Alexander Larsson
<alexl@redhat.com>
Thu, 6 Nov 2014 19:37:10 +0000
(20:37 +0100)
committer
Alexander Larsson
<alexl@redhat.com>
Thu, 6 Nov 2014 19:37:10 +0000
(20:37 +0100)
gdk/gdkgl.c
patch
|
blob
|
history
diff --git
a/gdk/gdkgl.c
b/gdk/gdkgl.c
index b962508833f678f9ac0f808bd6245f44c631f649..17a3a89d2ae048bc04d1a50d2764bc45ef4ec421 100644
(file)
--- a/
gdk/gdkgl.c
+++ b/
gdk/gdkgl.c
@@
-692,6
+692,7
@@
gdk_gl_texture_from_surface (cairo_surface_t *surface,
glBindTexture (target, texture_id);
glEnable (target);
+ glEnable (GL_SCISSOR_TEST);
glTexParameteri (target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri (target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
@@
-743,6
+744,7
@@
gdk_gl_texture_from_surface (cairo_surface_t *surface,
umax, vmax);
}
+ glDisable (GL_SCISSOR_TEST);
glDisable (target);
glDeleteTextures (1, &texture_id);
}